#ifndef DATATRANSFER_H
#define DATATRANSFER_H

#include <QIODevice>
#include <QTcpSocket>

class DataTransfer : public QObject
{
    Q_OBJECT
public:
    explicit DataTransfer(QObject *parent = 0);
    void send(QIODevice *from, QAbstractSocket *to);
    bool isProgress();

private:
    bool inProgress;
    int blockSize;

signals:
    void sendBegin();
    void sendEnd(bool isError);

public slots:

};

#endif // DATATRANSFER_H
